
<%@page import="com.dts.project.dao.MobileCardDetailsDao"%>
<%@page import="com.yourcompany.struts.form.MobileCardDetailsForm"%>
<%@page import="com.dts.project.dao.MobileOperatorMasterDao"%>
<%@page import="com.dts.core.util.CoreList"%>
<%@page import="java.util.Enumeration"%>
<%@page import="com.yourcompany.struts.form.MobileOperatorMasterForm"%> 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/transitional.dtd">
<html>
<head>
<style>
body,td,th {
	color: #B00606;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
body {
	background-color: #003333;
}
.style11 {color: #FFFFFF; font-weight: bold; }
</style>
<title>EPost- Office</title>
<script type="text/javascript" src="scripts/moveclock.js"></script>

<script type="text/javascript">
function validate()
{
var form =document.register
if(form.userName.value=="")
{
alert("User Name is Required");
return false;
}
else if(form.password.value=="")
{
alert("Pass Word is Required");
return false;
}  
return true;
}
</script>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></head>
<body>
<table width="750" align="center" bgcolor="#B00606">
<tr><td>
<img src="images/epostoffice.gif" width="780"></td>
</tr>
<tr>
   <td bgcolor="#E16A00">
   
   <jsp:include page="Adminoptions.jsp"/>
   
   </td></tr>
<tr><td>
<%--<div align="center">--%>
<%--<table bgcolor="#B00606" width="750" align="center">--%>
<%--<tr>--%>
<%--   <td><jsp:include page="Template.html"/></td></tr></table></div>--%>
<div align="center">
<table bgcolor="#B00606" width="770" align="center" height="70">
<tr>
   <td>
   
   
     <p>&nbsp;</p>
     <p>&nbsp;</p>
     <p>&nbsp;</p>
     <p align="center">
    
    <%
int id=Integer.parseInt(request.getParameter("Id"));
MobileCardDetailsDao dao=new MobileCardDetailsDao();
MobileCardDetailsForm form=dao.ViewMobileCardDetailsById(id);%>
<form action="updateMobileCardAction.do">
<h2><font color="White">Update Mobile Card Details</font></h2>
			<table align="center" bgcolor="#666633">
			<tr><td><div align="center"></div></td>
			<td><input type="hidden" name="cardId" value="<%=id %>"></td></tr>
			<tr><td><div align="center"><span class="style11">Operator Name : </span></div></td>
			<td><select name="operationId"/>
			<option value="<%=form.getOperationId() %>"><%=form.getOperatorname() %></option>
			<%MobileOperatorMasterDao dao1=new MobileOperatorMasterDao();
			CoreList cl1=dao1.ViewMobileOperatorMaster();
			Enumeration en1=cl1.elements();
			while(en1.hasMoreElements())
			{
			MobileOperatorMasterForm form1=(MobileOperatorMasterForm)en1.nextElement();
			 %>
			 <option value="<%=form1.getOperatorId() %>"><%=form1.getOperatorName() %> 
			 <%} %></option></td></tr>
			<tr><td><div align="center"><span class="style11">Card Name : </span></div></td>
			<td><input type=text name="cardName" value="<%=form.getCardName() %>"/> </td></tr>
			<tr><td><div align="center"><span class="style11">Card Number : </span></div></td>
			<td><input type=text name="cardNumber" value="<%=form.getCardNumber() %>"/> </td></tr>
			
			<tr><td><div align="center"><span class="style11">validityDate : </span></div></td>
			<td><input type=text name="validityDate" value="<%=form.getValidityDate() %>"/></td></tr> 
				 
			<tr><td>
			  <div align="center"></div>
			<tr>
			<td><input type=hidden name="cardStatus" value="Active"/></td></tr> 
			<tr><td><div align="center"><span class="style11">cardAmount : </span></div></td>
			<td><input type=text name="cardAmount" value="<%=form.getCardAmount() %>"/> </td></tr>
			<tr><td><div align="center"></div></td>
			<td><input type=submit name="Register" value="update"/> </td></tr></table>
		</form>
    
    
    
    
   <center>
     
     </center>
    
     
     
     </td></tr></table>
          <p>&nbsp;</p>
               <p>&nbsp;</p>
                    <p>&nbsp;</p>
                         
           <p>&nbsp;</p>
               <p>&nbsp;</p>
                    <p>&nbsp;</p>
                         
           <p>&nbsp;</p>
             
                         
                              
     <p>&nbsp;</p></div>


</body></html>